home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- InitFileNames()
- InitMembers()
- InitMembersSUPPORT()
- InitFontSize()
- InitScrolling()
- InitColours()
- InitCorner()
- initScanTag()
- resetScanTag()
- initTrace()
- go("main")
- end
-
- on setStartArticle
- global gSourceMem, gdbstart, gArtLib, gDBtrace, gNarraList, gNarraID, gScanCount
- set gSourceMem to the number of member gdbstart of castLib gArtLib
- UpdateNarraList()
- if voidp(gNarraList) or (count(gNarraList) < 1) then
- beep()
- set NarraID to 1
- else
- set Pair1 to getAt(gNarraList, 1)
- set NarraID to getAt(Pair1, 1)
- end if
- put "DBlaunch, SetStartArticle > Pair1 = " & Pair1
- add(gDBtrace, [NarraID, gdbstart])
- set gNarraID to NarraID
- if gdbstart = "CONTENTS" then
- set gScanCount to 32000
- end if
- end
-
- on InitScrolling
- global gScrollLine, gScrollTop, gScrollBotDB, gScrollArrowCh
- set gScrollLine to 10
- set gScrollTop to 35
- set gScrollBotDB to 330
- set gScrollArrowCh to 10
- end
-
- on InitCorner
- global gNarraID
- puppetSprite(gCornerCh(), 1)
- set cornMem to 60 + gNarraID
- set the member of sprite gCornerCh() to cornMem
- end
-
- on initTrace
- global gdbstart, gDBtrace
- if voidp(gdbstart) then
- set gdbstart to "contents"
- end if
- if voidp(gDBtrace) then
- PrepTrace()
- end if
- LoadTrace()
- loadArticle(gdbstart, 0)
- end
-
- on InitFileNames
- global gDBWinName, gSupportWinName, gArtLib, RootPath
- set gDBWinName to RootPath & "DATABASE"
- set gSupportWinName to RootPath & "SUPPORT"
- set gArtLib to "db_art"
- end
-
- on InitMembers
- global gSourceMem, gDisplayMem, gArtLib, gArtTitleMem, gTraceMem
- set gSourceMem to the number of member "contents" of castLib gArtLib
- set gDisplayMem to 17
- set gArtTitleMem to member 32 of castLib 1
- set gTraceMem to 33
- set the wordWrap of member gTraceMem to 0
- set the text of field gTraceMem to " "
- set the text of field gArtTitleMem to " "
- end
-
- on InitMembersSUPPORT
- global gDisplayMemSUPPORT
- set gDisplayMemSUPPORT to 17
- end
-
- on InitColours
- global gColorList
- set gColorList to [210, 59, 71, 232, 102, 137]
- end
-
- on InitFontSize
- global gFontSize
- set gFontSize to 10
- end
-